#include "stl.h"
#include "linkedlist.h"
using namespace LinkedList;
#include "solution.h"

int main(int argc, char *argv[]){
    vector<vector<int>> testcases[] = {
        { {1,4,5}, {1,3,4}, {2,6} },
        {},
        { {}, }
    };
    Solution sln;
    for(auto&t:testcases){
        vector<ListNode*> lists;
        vector< vector<ListNode> > vecs(t.size());
        for(int i=0; i<t.size(); i++){
            lists.push_back( Link(t[i], &vecs[i]) );
            print("list[", i, "]|", vecs[i], "=", lists[i], "\n")
        }
        print("merged:", sln.mergeKLists(lists), "\n\n")
    }
    
    print("\n------ main exit ------\n")
    return 0;
}
